package com.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xdl
 * @since 2022-08-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("o_order")
@ApiModel(value = "Order对象", description = "")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private String uid;

    @ApiModelProperty("店铺id")
    private Integer shopId;

    @ApiModelProperty("订单时间")
    private String orderDate;

    @ApiModelProperty("订单金额")
    private Double orderPay;

    @ApiModelProperty("订单编号")
    private String soid;

    @ApiModelProperty("支付宝账号")
    private String alipayNo;

    @ApiModelProperty("状态  0 交易成功  1 待支付  2 交易失败")
    private Integer state;

    @ApiModelProperty("支付方式 0微信支付        1支付宝支付")
    private Integer payType;

    @TableLogic
    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    private Integer isDeleted;

    @TableField(fill= FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime gmtModified;

}
